package cn.software.service;

import cn.software.eneity.param.RoleParam;
import cn.software.eneity.param.RoleResourceParam;
import cn.software.eneity.param.ResourceParam;
import cn.software.eneity.vo.ResourceVo;

import java.util.List;

/**
 * @Author gxy
 * @Date 2023/5/31 8:09
 * @PackageName:cn.software.service
 * @ClassName: ResourceService
 */
public interface ResourceService {
    //添加资源
    boolean addResource(ResourceParam resourceParam);
    //更新资源
    boolean updateResource(ResourceParam resourceParam);
    //禁用资源
    boolean disableResource(ResourceParam resourceParam);
    //启用资源
    boolean enableResource(ResourceParam resourceParam);
    //赋予权限
    boolean grantPermissions(RoleResourceParam roleResourceParam);
    //删除权限
    boolean deletePermissions(RoleResourceParam roleResourceParam);
    //查询资源
    List<ResourceVo> getAllSource();
    //根据身份查询资源
    List<ResourceVo> getSourceToRole(RoleParam roleParam);
    //删除资源
    boolean deleteResoure(Integer id);
}
